package com.lq.educationsystem.teacher.feign;

import com.lq.educationsystem.common.entiy.ExaminationTb;
import com.lq.educationsystem.common.util.Result;
import com.lq.educationsystem.common.util.ResultPage;
import com.lq.educationsystem.common.vo.ExaminationPageVo;
import com.lq.educationsystem.common.vo.TeacherSubjectExaminationVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name = "lq-examination",url = "http://localhost:8000/")
public interface ExaminationFeign {


    /**
     * 根据考试信息和课程id 添加并且获取考试信息
     */

    @RequestMapping("/examination/base/add/examiantion/info")
    public Result<ExaminationTb> addExaminationInfoByExaminationInfoAndSubjectId(@RequestBody TeacherSubjectExaminationVo teacherSubjectExaminationVo);

    /**
     * 根据考试id和学生id集合批量添加信息
     */

    @RequestMapping("/examination/student/base/add/batch/examination")
    public Result addBatchStudentExaminationInfoByExaminationIdAndStudentId(@RequestBody List<Integer> studentIdInfoList, @RequestParam("examinationId") Integer examinationId);
}
